#ifndef _OBJPOOL_H_
#define _OBJPOOL_H_

#include <queue>

template<typename T, int CHUNK_SIZE>
class ObjPool
{
public :
	ObjPool();

	T * Create();
	void Release(T * pT);

private:
	void AllocateChunk();
	std::queue<T*> m_qFreeList;
};

#include "ObjPool.cpp"
#endif

